package com.isoft.demooa.controller.salary;

import com.isoft.demooa.entity.salary.NormalSalary;
import com.isoft.demooa.service.salary.NormalSalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/salary/nor")
@CrossOrigin
public class NoramlSalaryController {

    @Autowired
    private NormalSalaryService normalSalaryService;


    @RequestMapping("/list")
    public List<NormalSalary> getList(){
        return  normalSalaryService.getList();
    }
}
